package com.hooenergy.etl.starter.core;


import lombok.Data;

import java.util.Map;

@Data
public class QueryCriteria {


    // 查询条件
    private Map<String, Object> queryMap;



    // 开始时间
    private Long start;


    // 结束时间
    private Long end;



    public static QueryCriteria createQueryCriteria(Map<String, Object> queryMap,
                                      Long start, Long end){
        QueryCriteria criteria = new QueryCriteria();
        criteria.setQueryMap(queryMap);
        criteria.setStart(start);
        criteria.setEnd(end);
        return criteria;
    }


    public static QueryCriteria createQueryCriteria(Map<String, Object> queryMap){
        QueryCriteria criteria = new QueryCriteria();
        criteria.setQueryMap(queryMap);
        return criteria;
    }


}
